/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package proyectoformulariodinamico;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;

/**
 *
 * @author David
 */
public class Ventana extends JFrame implements ActionListener{

    //JPanel pnlAll = new JPanel();
    Formulario f = new Formulario();
    //JScrollPane contenedor = new JScrollPane();
    
    
    public Ventana() {
        
        setSize(600,700);        
        //pnlAll.setLayout(new BoxLayout(pnlAll,BoxLayout.Y_AXIS));                        
//        pnlAll.add(new Pregunta());
//        pnlAll.add(new Pregunta());
        //pnlAll.add(new Pregunta());
        
        
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setTitle("Formulario");
                
        //contenedor.setViewportView(f);
        
        add(f);
        repaint();
        update(null);
        
    }
    
    

    @Override
    public void actionPerformed(ActionEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}